﻿@{ 
Layout = "_mainLayout.cshtml";
var username = "";
var password= "";
 
//bool loginstatus = false;

var db = Database.Open("EPS");
var sqlCommand="SELECT * FROM admin";



if(IsPost)
{
   
    if (Request["username"] == "epsadmin" && Request["password"] == "123456"  )
    {
        
        Response.Redirect("~/EPSHomePage.cshtml");
       // loginstatus = true;
        
    }
 

    else
    {
        Html.ValidationMessage("Invalid Username or Password");
        
        Response.Redirect("~/LoginPage.cshtml");
    
    }
  }

    
 }


 
<h1></br></br>Login</h1> 
@Html.ValidationSummary(true) 
<form action="" method="post"> 
<div> 
    </br></br></br>
@Html.Label("Username  ", "username") <span> :  </span> 
@Html.TextBox("username", username)  </br>
@Html.ValidationMessage("username") </br>
</div> 
<div> 
@Html.Label("Password  ", "password") <span> :  </span> 
@Html.Password("password", password) </br>
@Html.ValidationMessage("password") </br>
</div> 
<div> 
@Html.CheckBox("rememberMe", new { value = "true" }) 
@Html.Label("Remember me on this computer?", "rememberMe"  ) </br>
</div> 
<div> 
    </br>
<input type="submit" value="Login" style="color: #0094ff;font-size: 20px;" />
</div> 
</form>
<div>
  </br></br></br>  
    <input type="button" value="Download EPS App" style="color: #0094ff;font-size: 30px; right: auto;" />
    <span> Users can Download app for their mobile from here</span>

</div>